package part17_策略模式_鸭子问题.策略加工厂解决ifelse.pojo;

/**
 * @ClassName: LeaveForm
 * @Author: AllenSun
 * @Date: 2023/2/11 下午9:41
 */
public class LeaveForm {
    // 员工
    private Employee employee;
    // 请假原因
    private String reason;
    // 请假天数
    private int days;
    // 请假类型
    private int type;

    public LeaveForm(Employee employee, String reason, int days, int type) {
        this.employee = employee;
        this.reason = reason;
        this.days = days;
        this.type = type;
    }

    public Employee getEmployee() {
        return employee;
    }

    public String getReason() {
        return reason;
    }

    public int getDays() {
        return days;
    }

    public int getType() {
        return type;
    }

    @Override
    public String toString() {
        return "LeaveForm{" +
                "employee=" + employee +
                ", reason='" + reason + '\'' +
                ", days=" + days +
                ", type=" + type +
                '}';
    }
}
